﻿<%@ Page Title="CUPS Search" Language="vb" AutoEventWireup="false" MasterPageFile="~/Content/Site.Master" CodeBehind="search.aspx.vb" Inherits="CupsApp.Web.Form.search" %>
<%@ Register assembly="wwDataBinder" namespace="MsdnMag.Web.Controls" tagprefix="ww" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" href="../Content/Styles/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
    <script src="../Content/Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../Content/Scripts/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>
	<script type="text/javascript">    
	    
	    $(function() {
		    $(".datepicker").datepicker();
		});

		function fnClickOK(sender, e) {
		    __doPostBack(sender, e);
		} 

	</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
           
        
    <div class="Content">
        <div class="filler">
         </div><div class="filler"></div>
        <div class="FullRow1">
                <div class="ContentRow1">
                    <asp:Label ID="lblEntryDate"  runat="server" Text="Program Entry Date:"></asp:Label>
                </div>
                <div class="ContentRow2">
                    <asp:TextBox ID="txtEntryDate" CssClass ="datepicker" runat="server" Text='' />
                </div>
                <div class="ContentRow1">
                    <asp:Label ID="lblFirstPlacement" runat="server" Text="First Housing Placement Date:"></asp:Label>
                </div>
                <div class="ContentRow2">
                    <asp:TextBox ID="txtFirstPlacement" CssClass= "datepicker" runat="server" Text='' />
                </div>
         </div> 
          <div class="FullRow1">
                <div class="ContentRow1">
                    <asp:Label ID="lblInterviewDate" runat="server" Text="Intake Interview Date:"></asp:Label>
                </div>
                <div class="ContentRow2">
                    <asp:TextBox ID="txtInterviewDate" CssClass ="datepicker" runat="server" 
                        Text='' />
                </div>
                <div class="ContentRow1">
                    <asp:Label ID="lblClientID" runat="server" Text="Client ID:"></asp:Label>
                </div>
                <div class="ContentRow2">
                    <asp:TextBox ID="txtClientID" runat="server" 
                        Text='' />
                </div>
           </div>
           <div class="FullRow1">
                <div class="filler"></div>
                <div class="FormHeading">
                    <strong><asp:Label ID="lblBasicInfo" runat="server" Text="BASIC INFORMATION"></asp:Label></strong>
                </div>      
           </div>
           <div class="filler"></div>
            <div class="FullRow1">
                <div class="ContentRow1">
                    <asp:Label ID="Label2" runat="server" Text="Salutation:"></asp:Label>
                </div>
                <div class="ContentRow2">
                    <asp:TextBox ID="SalutationTextBox" runat="server" 
                            Text='' />
                </div>
                <div class="ContentRow1">
                    <asp:Label ID="Label17" runat="server" Text="Suffix:"></asp:Label>
                </div>
                <div class="ContentRow2">
                    <asp:TextBox ID="txtSuffix" runat="server" 
                            Text='' />
                </div>
           </div>
           <div class="FullRow1">
                <div class="ContentRow1">
                First Name:
                </div>
                <div class="ContentRow2">
                <asp:TextBox ID="txtFirstName" runat="server" 
                    Text='' />
                </div>
                <div class="ContentRow1">
                Last Name:
                </div>
                <div class="ContentRow2">
                    <asp:TextBox ID="txtLastName" runat="server" 
                    Text='' />
                </div>
          </div>
          <div class="FullRow1">
             <div class="ContentRow1">
                        Middle Name:
             </div>
          
             <div class="ContentRow2">
                <asp:TextBox ID="MiddleNameTextBox" runat="server" 
                Text='' />
             </div>
             <div class="ContentRow1">
                    Alias:
                </div> 
                <div class="ContentRow2">
                    <asp:TextBox ID="AliasTextBox" runat="server" Text='' />
                </div> 
          </div>
          <div class="FullRow1">
              <div class="ContentRow1">
                Birth Date:
                </div>
                <div class="ContentRow2">
                <asp:TextBox ID="BirthDateTextBox" runat="server" CssClass ="datepicker"
                    Text='' />
                </div>
                <div class="ContentRow1">
                Phone/Cell :
                </div>
                <div class="ContentRow2">
                <asp:TextBox ID="PhoneNumberTextBox" runat="server" 
                    Text='' />
                </div>
          </div>
          <div class="FullRow1">
          <div class="ContentRow1">
                <asp:Label ID="lblReferral" runat="server" Text="Referral" />
                
                </div>
                <div class="ContentRow3">
                <asp:CheckBox ID="chkReferral1"  runat="server" Text="Drop-In Center" />
                  <asp:MutuallyExclusiveCheckBoxExtender ID="chkReferral7_MutuallyExclusiveCheckBoxExtender" 
                    runat="server" Enabled="True" Key="referralCheckbox" TargetControlID="chkReferral1">
                </asp:MutuallyExclusiveCheckBoxExtender>
                <asp:CheckBox ID="chkReferral2"  runat="server" Text="Mustard Seed" />
                    <asp:MutuallyExclusiveCheckBoxExtender ID="chkReferral2_MutuallyExclusiveCheckBoxExtender" 
                        runat="server" Enabled="True" Key="referralCheckbox" TargetControlID="chkReferral2">
                    </asp:MutuallyExclusiveCheckBoxExtender>
                <asp:CheckBox ID="chkReferral3"  runat="server" Text="Salvation Army" /> 
                    <asp:MutuallyExclusiveCheckBoxExtender ID="chkReferral3_MutuallyExclusiveCheckBoxExtender" 
                        runat="server" Enabled="True" Key="referralCheckbox" TargetControlID="chkReferral3">
                    </asp:MutuallyExclusiveCheckBoxExtender>
                <asp:CheckBox ID="chkReferral4"  runat="server" Text="Alpha House" />
                    <asp:MutuallyExclusiveCheckBoxExtender ID="chkReferral4_MutuallyExclusiveCheckBoxExtender" 
                        runat="server" Enabled="True" Key="referralCheckbox" TargetControlID="chkReferral4">
                    </asp:MutuallyExclusiveCheckBoxExtender>
                <asp:CheckBox ID="chkReferral5"  runat="server" Text="Inn From The Cold" />
                    <asp:MutuallyExclusiveCheckBoxExtender ID="chkReferral5_MutuallyExclusiveCheckBoxExtender" 
                        runat="server" Enabled="True" Key="referralCheckbox" TargetControlID="chkReferral5">
                    </asp:MutuallyExclusiveCheckBoxExtender>
                <asp:CheckBox ID="chkReferral6"  runat="server" Text="Brenda's House" />
                    <asp:MutuallyExclusiveCheckBoxExtender ID="chkReferral6_MutuallyExclusiveCheckBoxExtender" 
                        runat="server" Enabled="True" Key="referralCheckbox" TargetControlID="chkReferral6">
                    </asp:MutuallyExclusiveCheckBoxExtender>
                </div>
          </div>
          <div class="FullRow1">
            <div class="ContentRow1">
            </div>
           <div class="ContentRow3">
                <asp:CheckBox ID="chkReferral7" runat="server" Text="Calgary Women's Emergency Shelter" />
               
                <asp:MutuallyExclusiveCheckBoxExtender ID="chkReferral7_MutuallyExclusiveCheckBoxExtender2" 
                    runat="server" Enabled="True" Key="referralCheckbox" TargetControlID="chkReferral7">
                </asp:MutuallyExclusiveCheckBoxExtender>
               
                <asp:CheckBox ID="chkReferral8" runat="server" Text="Sherriff King House" />
                <asp:MutuallyExclusiveCheckBoxExtender ID="chkReferral8_MutuallyExclusiveCheckBoxExtender" 
                    runat="server" Enabled="True" Key="referralCheckbox" TargetControlID="chkReferral8">
                </asp:MutuallyExclusiveCheckBoxExtender>
                <asp:CheckBox ID="chkReferral9" runat="server" Text="Awo Taan Healing Lodge" />
                <asp:MutuallyExclusiveCheckBoxExtender ID="chkReferral9_MutuallyExclusiveCheckBoxExtender" 
                    runat="server" Enabled="True" Key="referralCheckbox" TargetControlID="chkReferral9">
                </asp:MutuallyExclusiveCheckBoxExtender>
               
                </div>
          </div>
            <div class="FullRow1">
                <div class="ContentRow1">
                </div>
                <div class="ContentRow3">
                 Other: <asp:TextBox ID="chkReferral10" runat="server" Text="" />
                </div>
          </div>
          
           <div class="FullRow1">
                <div class="ContentRow1">
                <asp:Label ID="Label11" runat="server" Text="Sex:"></asp:Label>
                </div>
                <div class="ContentRow3">
                     <asp:CheckBox ID="IsMaleCheckBox" runat="server" 
                        Checked="false" Text="Male" />
                     <asp:MutuallyExclusiveCheckBoxExtender ID="IsMaleCheckBox_MutuallyExclusiveCheckBoxExtender" 
                         runat="server" Enabled="True" Key="sexCheckBox" TargetControlID="IsMaleCheckBox">
                     </asp:MutuallyExclusiveCheckBoxExtender>
                     <asp:CheckBox ID="IsFemaleCheckBox" runat="server" 
                        Checked="false" Text="Female" />
                        <asp:MutuallyExclusiveCheckBoxExtender ID="IsFemaleCheckBox_MutuallyExclusiveCheckBoxExtender" 
                         runat="server" Enabled="True" Key="sexCheckBox" TargetControlID="IsFemaleCheckBox">
                     </asp:MutuallyExclusiveCheckBoxExtender>
                        <asp:CheckBox ID="IsTranssexualCheckBox" runat="server" 
                        Checked="false" Text="Transexual" />
                          <asp:MutuallyExclusiveCheckBoxExtender ID="IsTranssexualCheckBox_MutuallyExclusiveCheckBoxExtender" 
                         runat="server" Enabled="True" Key="sexCheckBox" TargetControlID="IsTranssexualCheckBox">
                     </asp:MutuallyExclusiveCheckBoxExtender>
                          <asp:CheckBox ID="IsTransgenderCheckBox" runat="server" 
                        Checked="false" Text="Transgender" />
                     <asp:MutuallyExclusiveCheckBoxExtender ID="IsTransgenderCheckBox_MutuallyExclusiveCheckBoxExtender" 
                         runat="server" Enabled="True" Key="sexCheckBox" TargetControlID="IsTransgenderCheckBox">
                     </asp:MutuallyExclusiveCheckBoxExtender>
                </div>
            </div> 
            <div class="FullRow1">
                    <div class="ContentRow1">
                    <asp:Label ID="lblIdentification" runat="server" Text="Identification:"></asp:Label>
                        
                    </div>
                    <div class="ContentRow3">
                        <asp:CheckBox ID="HasDriversLicenceCheckBox" runat="server" 
                    Checked="false"  Text="Drivers Licence"/>
                        <asp:CheckBox ID="HasSinNumberCheckBox" runat="server" 
                        Checked="false"  Text="SIN Number" />
                               <asp:CheckBox ID="HasHealthCardCheckBox" runat="server" 
                    Checked="false" Text="Health Card"  />
                    <asp:CheckBox ID="HasOtherIdentificationCheckBox" runat="server" 
                    Checked="false"  Text="Other" />
                    </div>
               </div>
              <div class="FullRow1">
                    <div class="ContentRow1">
                    <asp:Label ID="Label13" runat="server" Text="SIN Number:"></asp:Label>
                    </div>
                    <div class="ContentRow2">
                    <asp:TextBox ID="SinTextBox" runat="server" Text='' />
                    </div>
                    <div class="ContentRow1">
                    <asp:Label ID="lblEmail" runat="server" Text="Email:"></asp:Label>
                    </div>
                    <div class="ContentRow2">
                    <asp:TextBox ID="txtEmail" runat="server" Text='' />
                    </div>
              </div>
              
              <div class="FullRow1">
                    <div class="FormHeading">
                    <div class="ContentHeaderRow1">
                        <strong><asp:Label ID="lblFirstLanguage" runat="server" Text="FIRST LANGUAGE"></asp:Label></strong>
                    </div>
                    <div class="ContentHeaderRow2">
                        <strong><asp:Label ID="lblVeteranStatus" runat="server" Text="VETERAN STATUS"></asp:Label></strong>
                    </div>
                    </div>
                
                </div>
                <div class="FullRow1">
                    <div class="HalfRow1">
                         <asp:CheckBox ID="IsEnglishCheckBox" runat="server" 
                            Checked="false" Text="English" />
                            <asp:MutuallyExclusiveCheckBoxExtender ID="IsEnglishCheckBox_MutuallyExclusiveCheckBoxExtender" 
                             runat="server" Enabled="True" Key="languageCheckBox" TargetControlID="IsEnglishCheckBox">
                         </asp:MutuallyExclusiveCheckBoxExtender>
                            <asp:CheckBox ID="IsFrenchCheckBox" runat="server" 
                            Checked="false" Text="French" />
                             <asp:MutuallyExclusiveCheckBoxExtender ID="IsFrenchCheckBox_MutuallyExclusiveCheckBoxExtender" 
                             runat="server" Enabled="True" Key="languageCheckBox" TargetControlID="IsFrenchCheckBox">
                         </asp:MutuallyExclusiveCheckBoxExtender>
                             <asp:CheckBox ID="IsOtherFirstLanguageCheckBox" runat="server" 
                                Checked="false" Text="Other" />
                         <asp:MutuallyExclusiveCheckBoxExtender ID="IsOtherFirstLanguageCheckBox_MutuallyExclusiveCheckBoxExtender" 
                             runat="server" Enabled="True" Key="languageCheckBox" 
                             TargetControlID="IsOtherFirstLanguageCheckBox">
                         </asp:MutuallyExclusiveCheckBoxExtender>
                    </div>
                    <div class="HalfRow2">
                    <asp:Label ID="lblVeteran" runat="server" Text="Did you serve in the Canadian Armed Forces?" ></asp:Label>
                      <asp:CheckBox ID="IsVeteranCheckBox1" runat="server" Text="Yes"
                            Checked="false" />
                            <asp:MutuallyExclusiveCheckBoxExtender ID="IsVeteranCheckBox1_MutuallyExclusiveCheckBoxExtender" 
                            runat="server" Enabled="True" Key="veteranCheckBox" TargetControlID="IsVeteranCheckBox1">
                        </asp:MutuallyExclusiveCheckBoxExtender>
                            <asp:CheckBox ID="IsVeteranCheckBox2" runat="server" Text="No"
                            Checked="false" />
                        <asp:MutuallyExclusiveCheckBoxExtender ID="IsVeteranCheckBox2_MutuallyExclusiveCheckBoxExtender" 
                            runat="server" Enabled="True" Key="veteranCheckBox" TargetControlID="IsVeteranCheckBox2">
                        </asp:MutuallyExclusiveCheckBoxExtender>
                    </div>
                
                </div>
                <div class="FullRow1">
                    <div class="FormHeading">
                        <strong><asp:Label ID="lblCitizenship" runat="server" Text="CITIZENSHIP & MIGRANT STATUS ( Check all that apply )"></asp:Label></strong>
                    </div> 
                </div>
                <div class="FullRow1">
                            <asp:CheckBox ID="IsCanadianCitizenCheckBox" runat="server" 
                                Checked=false Text="Canadian Citizen"/>
                                 <asp:CheckBox ID="IsTempForeignWorkerCheckBox" runat="server" 
                            Checked=false Text="Foreign Temp Worker"/>
                            <asp:CheckBox ID="IsRefugeeClaimantCheckBox" runat="server" 
                            Checked=false Text="Refugee Claiment"  />
                                <asp:CheckBox ID="IsRecentImmigrantCheckBox" runat="server" 
                            Checked=false  Text="Recent Imigrant ( Within 3 years )" />
                              <asp:CheckBox ID="IsNewToProvinceCheckBox" runat="server" 
                            Checked=false Text="New to the Province ( Within 3 months )" />
                </div>
                 <div class="FullRow1">
                    <div class="FormHeading">
                    <strong><asp:Label ID="lblRace" runat="server" Text="RACE"></asp:Label></strong>
                    </div>
                </div>
                <div class="FullRow1">
                             <asp:CheckBox ID="IsAboriginalCheckBox" runat="server" 
                        Checked="false" Text="Aboriginal"/>
                             <asp:MutuallyExclusiveCheckBoxExtender ID="IsAboriginalCheckBox_MutuallyExclusiveCheckBoxExtender" 
                                 runat="server" Enabled="True" Key="raceCheckBox" TargetControlID="IsAboriginalCheckBox">
                             </asp:MutuallyExclusiveCheckBoxExtender>
                          <asp:Checkbox ID="IsCaucasianTextBox" runat="server" 
                        Checked="false" Text="Caucasian"  />
                             <asp:MutuallyExclusiveCheckBoxExtender ID="IsCaucasianTextBox_MutuallyExclusiveCheckBoxExtender" 
                                 runat="server" Enabled="True" Key="raceCheckBox" TargetControlID="IsCaucasianTextBox">
                             </asp:MutuallyExclusiveCheckBoxExtender>
                         <asp:CheckBox ID="IsOtherRaceCheckBox" runat="server" 
                        Checked="false"  Text="Other"/>
                             <asp:MutuallyExclusiveCheckBoxExtender ID="IsOtherRaceCheckBox_MutuallyExclusiveCheckBoxExtender" 
                                 runat="server" Enabled="True" Key="raceCheckBox" TargetControlID="IsOtherRaceCheckBox">
                             </asp:MutuallyExclusiveCheckBoxExtender>
                </div>
                <div class="FullRow1">
                    <div class="FormHeading">
                    <strong><asp:Label ID="lblFamilyStatus" runat="server" Text="FAMILY STATUS"></asp:Label></strong>
                    </div>
                </div>
                <div class="FullRow1">
                    <asp:CheckBox ID="IsSingleCheckBox" runat="server" 
                        Checked="false" Text="Single"/>
                            <asp:MutuallyExclusiveCheckBoxExtender ID="MutuallyExclusiveCheckBoxExtender1" 
                                runat="server" Enabled="True" Key="parentTypeCheckBox" 
                                TargetControlID="IsSingleCheckBox">
                            </asp:MutuallyExclusiveCheckBoxExtender>
                    <asp:CheckBox ID="IsDomesticViolenceCheckBox" runat="server"
                        Check="false" Text="Domestic Violence Family" />
                         <asp:MutuallyExclusiveCheckBoxExtender ID="MutuallyExclusiveCheckBoxExtender2" 
                                runat="server" Enabled="True" Key="parentTypeCheckBox" 
                                TargetControlID="IsDomesticViolenceCheckBox">
                            </asp:MutuallyExclusiveCheckBoxExtender>
                        
                </div>
                <div class="FullRow1">
                            <asp:CheckBox ID="IsSingleParentFamilyCheckBox" runat="server" 
                        Checked="false" Text="Single Parent Family"/>
                            <asp:MutuallyExclusiveCheckBoxExtender ID="IsSingleParentFamilyCheckBox_MutuallyExclusiveCheckBoxExtender" 
                                runat="server" Enabled="True" Key="parentTypeCheckBox" 
                                TargetControlID="IsSingleParentFamilyCheckBox">
                            </asp:MutuallyExclusiveCheckBoxExtender>
                         <asp:CheckBox ID="IsTwoParentFamilyCheckBox" runat="server" 
                        Checked="false" Text="Two Parent Family" />
                            <asp:MutuallyExclusiveCheckBoxExtender ID="IsTwoParentFamilyCheckBox_MutuallyExclusiveCheckBoxExtender" 
                                runat="server" Enabled="True" Key="parentTypeCheckBox" 
                                TargetControlID="IsTwoParentFamilyCheckBox">
                            </asp:MutuallyExclusiveCheckBoxExtender>
                        <asp:Label ID="Label16" runat="server" Text=" Number of Dependants:"></asp:Label>&nbsp;&nbsp
                        <asp:TextBox ID="NumOfDependantsTextBox" runat="server" 
                        Text=''  />
                </div>
        <div class="FullRow1">
            <hr />
         
            <center>
                <asp:Button ID="btnSearch" runat="server" Text="Search" Width="90px" 
                    OnClick= "btnSearch_Click"/>
                    <asp:Button runat="server" ID="HiddenForModal" style="display: none" />
                
            </center>
            <asp:ModalPopupExtender ID="btnSearch_ModalPopupExtender" runat="server" 
                     Enabled="True" 
                    TargetControlID="HiddenForModal" PopupControlID="ModalPanel" 
                    OkControlID="CancelSearchButton" Drag="True" BackgroundCssClass="backgroundPopup" >
                </asp:ModalPopupExtender>
                <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                </asp:ToolkitScriptManager>
            </div>
        <br />
     
            <asp:Panel ID="ModalPanel" runat="server" Width="500px" BackColor="White" 
            CssClass="popup">
                <center> Search Results</center>
                <br />
                <asp:GridView ID="GridView1" runat="server" Width="500px" 
                    AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" 
                    AllowPaging="True">
                    <Columns>
                        <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" 
                            Visible="False" />
                        <asp:HyperLinkField DataNavigateUrlFields="ID" HeaderText="First Name" 
                            DataNavigateUrlFormatString="~/Forms/Personal.aspx?clientID={0}" 
                            DataTextField="FirstName" DataTextFormatString="{0}" 
                            />
                         <asp:HyperLinkField DataNavigateUrlFields="ID" HeaderText="Last Name" 
                            DataNavigateUrlFormatString="~/Forms/Personal.aspx?clientID={0}" 
                            DataTextField="LastName" DataTextFormatString="{0}" 
                            />
                        <asp:BoundField DataField="MiddleName" HeaderText="MiddleName" 
                            SortExpression="MiddleName" Visible="False" />
                        <asp:BoundField DataField="LastName" HeaderText="LastName" 
                            SortExpression="LastName" Visible="false" />
                        <asp:BoundField DataField="Saluation" HeaderText="Saluation" 
                            SortExpression="Saluation" Visible="False" />
                        <asp:BoundField DataField="Suffix" HeaderText="Suffix" SortExpression="Suffix" 
                            Visible="False" />
                        <asp:BoundField DataField="Alias" HeaderText="Alias" SortExpression="Alias" 
                            Visible="False" />
                        <asp:BoundField DataField="BirthDate" HeaderText="BirthDate" 
                            SortExpression="BirthDate" Visible="False" />
                        <asp:BoundField DataField="Gender" HeaderText="Gender" SortExpression="Gender" 
                            Visible="False" />
                        <asp:BoundField DataField="IdentificationType" HeaderText="IdentificationType" 
                            SortExpression="IdentificationType" Visible="False" />
                        <asp:BoundField DataField="Sin" HeaderText="Sin" SortExpression="Sin" 
                            Visible="False" />
                        <asp:BoundField DataField="Phone" HeaderText="Phone" SortExpression="Phone" 
                            Visible="False" />
                        <asp:BoundField DataField="DateStarted" HeaderText="DateStarted" 
                            SortExpression="DateStarted" Visible="False" />
                        <asp:BoundField DataField="CurrentStatusID" HeaderText="CurrentStatusID" 
                            SortExpression="CurrentStatusID" Visible="False" />
                        <asp:BoundField DataField="UpdatedOn" HeaderText="UpdatedOn" 
                            SortExpression="UpdatedOn" Visible="False" />
                        <asp:BoundField DataField="UpdateBy" HeaderText="UpdateBy" 
                            SortExpression="UpdateBy" Visible="False" />
                        <asp:BoundField DataField="ApplicationID" HeaderText="ApplicationID" 
                            SortExpression="ApplicationID" Visible="False" />
                        <asp:BoundField DataField="EntryDate" HeaderText="EntryDate" 
                            SortExpression="EntryDate" Visible="False" />
                        <asp:BoundField DataField="FirstPlacementDate" HeaderText="FirstPlacementDate" 
                            SortExpression="FirstPlacementDate" Visible="False" />
                        <asp:BoundField DataField="InterviewDate" HeaderText="InterviewDate" 
                            SortExpression="InterviewDate" Visible="False" />
                        <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" 
                            Visible="False" />
                    </Columns>
                </asp:GridView>
                <br />
                <center><asp:Button ID="CancelSearchButton" runat="server" OnClick="CancelSearch_Click" Text="CANCEL SEARCH" />
                    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                        SelectMethod="SearchClients" TypeName="CupsApp.Service.CupsDomainService" 
                        EnablePaging="True">
           
                    </asp:ObjectDataSource>
                </center>
         </asp:Panel>

           
       
    </div>
    <ww:wwDataBinder ID="wwDataBinder1" runat="server">
        <DataBindingItems>
            <ww:wwDataBindingItem ID="WwDataBindingItem6" runat="server" ControlId="txtFirstName"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="FirstName">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem7" runat="server" ControlId="txtLastName"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="LastName">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem1111" runat="server" ControlId="MiddleNameTextBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="MiddleName">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem3" runat="server" ControlId="SalutationTextBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="Salutation">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem4" runat="server" ControlId="txtSuffix"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="Suffix">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem5" runat="server" ControlId="AliasTextBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="OtherAlias">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem8" runat="server" ControlId="BirthDateTextBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="BirthDate">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem9" runat="server" ControlId="IsMaleCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="IsMale" BindingProperty="Checked">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem12" runat="server" ControlId="IsFemaleCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="IsFemale" BindingProperty="Checked">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem13" runat="server" ControlId="IsTranssexualCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="IsTranssexual"
                BindingProperty="Checked">
                
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem14" runat="server" ControlId="IsTransgenderCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="IsTransgender"
                BindingProperty="Checked">
               
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem10" runat="server" ControlId="SinTextBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="Sin">
                
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem11" runat="server" ControlId="PhoneNumberTextBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="Phone">
               
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem16" runat="server" ControlId="lblVeteranStatus"
                BindingMode="OneWay" BindingSource="_data" BindingSourceMember="QuestionsText[lblVeteranStatus]">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem2" runat="server" ControlId="IsVeteranCheckBox1"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsVeteranCheckBox1]"
                BindingProperty="Checked">
                
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem40" runat="server" ControlId="IsVeteranCheckBox2"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsVeteranCheckBox2]"
                BindingProperty="Checked">
                
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem17" runat="server" ControlId="IsEnglishCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsEnglishCheckBox]"
                BindingProperty="Checked">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem18" runat="server" ControlId="IsFrenchCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsFrenchCheckBox]"
                BindingProperty="Checked">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem19" runat="server" ControlId="IsOtherFirstLanguageCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsOtherFirstLanguageCheckBox]"
                BindingProperty="Checked">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem20" runat="server" ControlId="IsCanadianCitizenCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsCanadianCitizenCheckBox]"
                BindingProperty="Checked">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem22" runat="server" ControlId="IsTempForeignWorkerCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsTempForeignWorkerCheckBox]"
                BindingProperty="Checked">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem23" runat="server" ControlId="IsRefugeeClaimantCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsRefugeeClaimantCheckBox]"
                BindingProperty="Checked">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem24" runat="server" ControlId="IsCanadianCitizenCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsCanadianCitizenCheckBox]"
                BindingProperty="Checked">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem45" runat="server" ControlId="IsRecentImmigrantCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsRecentImmigrantCheckBox]"
                BindingProperty="Checked">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem25" runat="server" ControlId="IsNewToProvinceCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsNewToProvinceCheckBox]"
                BindingProperty="Checked">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem27" runat="server" ControlId="IsAboriginalCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsAboriginalCheckBox]"
                BindingProperty="Checked">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem28" runat="server" ControlId="IsCaucasianTextBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsCaucasianTextBox]"
                BindingProperty="Checked">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem29" runat="server" ControlId="IsRefugeeClaimantCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsRefugeeClaimantCheckBox]"
                BindingProperty="Checked">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem30" runat="server" ControlId="IsOtherRaceCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsOtherRaceCheckBox]"
                BindingProperty="Checked">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            </ww:wwDataBindingItem>
          <ww:wwDataBindingItem ID="WwDataBindingItem32" runat="server" ControlId="lblFamilyStatus"
                BindingMode="OneWay" BindingSource="_data" BindingSourceMember="QuestionsText[lblFamilyStatus]">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem31" runat="server" ControlId="IsTwoParentFamilyCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsTwoParentFamilyCheckBox]"
                BindingProperty="Checked">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem33" runat="server" ControlId="IsSingleParentFamilyCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsSingleParentFamilyCheckBox]"
                BindingProperty="Checked">
           </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem57" runat="server" ControlId="IsSingleCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsSingleCheckBox]"
                BindingProperty="Checked">
           </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem58" runat="server" ControlId="IsDomesticViolenceCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[IsDomesticViolenceCheckBox]"
                              BindingProperty="Checked">
           </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem34" runat="server" ControlId="NumOfDependantsTextBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[NumOfDependantsTextBox]">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem35" runat="server" ControlId="lblIdentification"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="QuestionsText[lblIdentification]">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem36" runat="server" ControlId="HasDriversLicenceCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[HasDriversLicenceCheckBox]"
                BindingProperty="Checked">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem37" runat="server" ControlId="HasSinNumberCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[HasSinNumberCheckBox]"
                BindingProperty="Checked">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem39" runat="server" ControlId="HasHealthCardCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[HasHealthCardCheckBox]"
                BindingProperty="Checked">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem38" runat="server" ControlId="HasOtherIdentificationCheckBox"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[HasOtherIdentificationCheckBox]"
                BindingProperty="Checked">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem41" runat="server" ControlId="txtEntryDate"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="EntryDate">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem42" runat="server" ControlId="txtFirstPlacement"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="FirstPlacementDate">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem43" runat="server" ControlId="txtInterviewDate"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="InterviewDate">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem44" runat="server" ControlId="txtClientID"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="ClientID">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem46" runat="server" ControlId="chkReferral1"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[chkReferral1]"
                BindingProperty="Checked">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem47" runat="server" ControlId="chkReferral2"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[chkReferral2]"
                BindingProperty="Checked">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem48" runat="server" ControlId="chkReferral3"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[chkReferral3]"
                BindingProperty="Checked">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem49" runat="server" ControlId="chkReferral4"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[chkReferral4]"
                BindingProperty="Checked">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem50" runat="server" ControlId="chkReferral5"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[chkReferral5]"
                BindingProperty="Checked">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem51" runat="server" ControlId="chkReferral6"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[chkReferral6]"
                BindingProperty="Checked">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem52" runat="server" ControlId="chkReferral7"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[chkReferral7]"
                BindingProperty="Checked">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem53" runat="server" ControlId="chkReferral8"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[chkReferral8]"
                BindingProperty="Checked">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem54" runat="server" ControlId="chkReferral9"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[chkReferral9]"
                BindingProperty="Checked">
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem55" runat="server" ControlId="chkReferral10"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="AnswersText[chkReferral10]"
               >
            </ww:wwDataBindingItem>
            <ww:wwDataBindingItem ID="WwDataBindingItem56" runat="server" ControlId="txtEmail"
                BindingMode="TwoWay" BindingSource="_data" BindingSourceMember="Email">
            </ww:wwDataBindingItem>
       
            <ww:wwDataBindingItem runat="server" 
                ControlId="IsTwoParentFamilyCheckBox_MutuallyExclusiveCheckBoxExtender">
            </ww:wwDataBindingItem>
       
</DataBindingItems>
        
  </ww:wwDataBinder>
 

</asp:Content>
